<template>
	<view>
		<text>我的页面----</text>
		<text>{{greet}}</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				greet: 'nice to meet you~'
			}
		},
		onLoad() {
			uni.$on('getInfo', greet => {
				console.log('我的页面的全局事件被触发了')
				this.greet = greet 
			})
			if (process.env.NODE_ENV == 'devlopment'){
				console.log('开发环境')
			} else {
				console.log('生产环境')
			}
			
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
